package cn.com.cfae.iras.doc.analyze.parse.model.iaad;

import cn.com.cfae.iras.doc.analyze.parse.model.ExtractItem;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import static cn.com.cfae.iras.doc.analyze.parse.model.BizBaseModel.SYNONYM_SPLIT_CHAR;

/**
 * Created by 佟媛媛 on 18/11/5.
 * 钢铁
 */
public class GTModel {



    public static String MODEL_NAME = "GT";

    /**
     * 净利润
     */
    private static String JLR = "JLR";

    /**
     * 受限资产
     */
    private static String SXZC = "SXZC";

    /**
     * 产能利用率
     */
    private static String CNLYL = "CNLYL";

    /**
     * 产量规模
     */
    private static String CNGM = "CNGM";

    /**
     * 人均产钢量
     */
    private static String RJCGL = "RJCGL";

    /**
     * 资产负债率（%）
     */
    private static String ZCFZL = "ZCFZL";


    /**
     * 总资产
     */
    private static String ZZC = "ZZC";

    /**
     * 总负债
     */
    private static String ZFZ = "ZFZ";


    /**
     * 经营活动现金流入量
     */
    private static String HDXJL = "HDXJL";

    /**
     * 短期借款（倍）
     */
    private static String DQJK = "DQJK";


    /**
     * 存货周转天数（天）
     */
    private static String CHZZTS = "CHZZTS";

    /**
     * 债务融资工具余额
     */
    private static String ZWRZGJYE = "ZWRZGJYE";

    /**
     * 有息债务
     */
    private static String YXZW = "YXZW";

    private static Map<String, String> items = new HashMap<>();

    static {
        items.put(CNLYL, "产能利用率");
        items.put(CNGM, "产量规模|产能规模|钢材产量");
        items.put(RJCGL, "人均产钢量");
    }

    public static List<ExtractItem> createExtractItemList() {
        List<ExtractItem> extractItemList = new ArrayList<>();
        items.forEach((key, value) -> {
            ExtractItem extractItem = new ExtractItem();
            extractItem = new ExtractItem();
            extractItem.setItemName(key);
            extractItem.setSynonyms(value.split(SYNONYM_SPLIT_CHAR));
            extractItemList.add(extractItem);
        });
        return extractItemList;
    }

}
